
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="action">
   <tbody>
	<tr>
		<td id="heading" class="heading" colspan="2" style="height:50px;font-size:16px;">Order Receipt - Order Number <?=template::formatOrderNum($order_id)?></td> 
	</tr>
	
	<tr>
		<td>
			<span class="notReq">Order Date: <?=date('m/d/Y H:i:s',strtotime($order->createdtime))?></span> <br/>
			<span class="cartsubheading">Info</span>
			<div class="hrdiv" style="height:10px;width:150px;"></div>
			<div class="paymentOptionsSummaryActualDiv">
                <?=$order->type_payment?><br />
                <?=$order->emailrecived?><br />
			 <pre>
                <?php //print_r($order); ?>
             </pre>
			</div>
		</td> 
	</tr>
	
	<tr>
		<td colspan="2">
			<span class="cartsubheading">Order Detail</span>
			<div class="hrdiv" style="height:10px;width:150px;"></div>
			
			<table class="shopping_cart">
                <thead>
    				<tr>				
                        <td ></td>
    		   			<td width="45%" style="text-align: left;" >Deal</td>
    		   			<td width="15%" >Amount</td>
    		   			<td width="10%" >Quantity</td>  
    		   			<td width="15%" >Total</td>  
    		 		</tr>
                </thead>
                <tbody>
     				<?php $index=0;
                     foreach($orderdetail as $item):?>
     				<tr class="<?=($index%2==0)?'':'odd'?>">
                        <td><a href="/deal/detail/<?=$item->deal_id?>"><img src="/<?=$item->picture?>" width="75px" height="75px"/></a></td>  
                       <td style="text-align: left;" ><a href="/deal/detail/<?=$item->deal_id?>"><?=$item->dealname?></a></td>
                        <td>
                       		$<?=$item->price;?>
                       	</td>  
                       <td>1</td>       
                  	   <td>$<?=$item->price?></td>  
    		 		</tr>
     				<?php
                        $index++;
                        endforeach;
                     ?>	
                </tbody>
                <tfoot>
                    <tr><td class="total" colspan="5">Sub Total: $<?=($order->payment_amount)?></td></tr>				
                </tfoot>
			</table>
            <p>
                <b>Your order has been processed successfully.</b>
            </p>
		</td>
	<tr>
</table>

